package cn.itsource.ymcc.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class RegDto {
    @NotBlank(message = "手机号不能为空！")
    @Pattern(regexp = "^1[3-9]{1}[0-9]{9}$", message = "手机号格式错误！")
    private String mobile;


    @NotBlank(message = "密码不能为空！")
    private String password;

    private String imageCode;

    @NotBlank(message = "短信验证码不能为空！")
    private String smsCode;

    private Integer regChannel;//注册的渠道
}
